package com.pap.product.product.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.product.product.auto.entity.Product;;

public interface ProductMapper extends PapBaseMapper<Product> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<Product> selectListByMap(Map<Object, Object> map);

	Product selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(Product record);

	int insertSelective(Product record);

	Product selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Product record);

	int updateByPrimaryKey(Product record);
}